﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="approveschedual.aspx.cs" Inherits="Business_approveschedual" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>审批开启/关闭</title>
<link rel="stylesheet" type="text/css" href="../js/themes/default/easyui.css"/>
	<link rel="stylesheet" type="text/css" href="../js/themes/icon.css"/>
	<link rel="stylesheet" type="text/css" href="../CSS/Style.css"/>
    <script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
   	<script type="text/javascript" src="../js/jquery.easyui.min.js"></script>   
	<script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>  
	<script type="text/javascript">
	function check(){
	      if($("#txtOpenDate").val()==""){
             $("#txtOpenDate").focus();
             return false;
          }
           if($("#txtCloseDate").val()==""){
             $("#txtCloseDate").focus();
             return false;
          }
	}
	function hidearea()
	{
	     $("#showinfo").toggle();
	}
	function clearall()
	{
	     $("#txtOpenDate").val("");
	     $("#ddlopen").val("00:00"); 
	     $("#txtCloseDate").val("");
	     $("#ddlclose").val("00:00");
	     $("#txtRemark").val("");
	    return false; 
	}
	</script>
</head>
<body>
    <form id="form1" runat="server">
   <div style="background:#efefef;width:100%;">
	   <a href="#" target="mainwin" class="easyui-linkbutton" plain="true">审批计划</a>&nbsp;&nbsp;|
       <a href="approvehistory.aspx" target="mainwin" class="easyui-linkbutton" plain="true">历史审批</a>
       <a href="../Web/viewinfo.aspx" target="mainwin" style="float:right; margin:0; padding:0;"><img alt="返回" title="返回上级" src="../Images/GetBack.png" style="border:0; margin:0; padding:0;" /></a> 
	</div>
	<center>
    <div class="curvy" style="text-align:left; margin-top:7px;width:96%;">
        <em class="ctl"><b>&bull;</b></em>
        <em class="cbl"><b>&bull;</b></em>
        <em class="ctr"><b>&bull;</b></em>
        <em class="cbr"><b>&bull;</b></em>
        <p>(1)此项功能仅限系统管理员使用，由系统管理员开启某一个项目计划的审批。<br />
              (2)此审批计划的对象只能是已经结束的项目计划（各类申报），因此计划的开启时间一定是大于开启对象的结束时间的。且此审批计划只针对学院管理员有效。
        </p>
    </div>	
   </center> 
    <div class="columns_container">
    <div class="columns_left">
        <div class="columns_left_padding">
	       <div class="heading_container">
	             <div class="heading_right_top">&nbsp;</div>
	             <h2>创建新审批计划</h2></div>
	       <div class="bucket_container">
	             <div class="bucket_top"><span>&nbsp;</span>&nbsp;</div>
	             <div class="bucket_content">
	               <div class="bucket_content_table">
	                 <asp:ScriptManager ID="ScriptManager1" runat="server">
                       </asp:ScriptManager> 
                            <table class="bucket_content_table" cellpadding="5" cellspacing="0">
                         <tr>
                             <td style="width:70px;">计划编号：</td>
                             <td  colspan="2">
                                 <asp:Label ID="labPlancode" runat="server" Text="[自动生成]"></asp:Label><%--<asp:TextBox ID="txtplancode" runat="server"></asp:TextBox>--%>
                             </td>
                         </tr>
                         <tr>
                             <td>开启对象：</td>
                             <td>
                                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                        <ContentTemplate>
                                            <asp:DropDownList ID="ddlApprove" runat="server" Width="153px" OnSelectedIndexChanged="ddlApprove_SelectedIndexChanged" AutoPostBack="True">
                                 </asp:DropDownList>
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                </td>
                                <td><a href="javascript:hidearea()">显示/隐藏</a></td>
                         </tr>
                        </table>  
                        <div id="showinfo" style=" background-color:#f2eada; padding-left:10px; padding-right:10px; display:none; color:#2b6447;">
                            <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                                <ContentTemplate>
                                     <table cellpadding="3" cellspacing="0">
                                <tr>
                                    <td>目标编号:</td><td><asp:Label ID="lbplancode" runat="server" Width="150px">未选定</asp:Label></td>
                                    <td style="text-align:right;">类&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;型:</td><td><asp:Label ID="lbtype" runat="server">未选定</asp:Label></td>
                                </tr> 
                                <tr>
                                    <td>项目级别:</td><td><asp:Label ID="lblevel" runat="server" Width="150px">未选定</asp:Label></td>
                                    <td style="text-align:right;">项目类别:</td><td><asp:Label ID="lbptype" runat="server">未选定</asp:Label></td> 
                                </tr>
                                <tr>
                                    <td>开启时间:</td><td colspan="3"><asp:Label ID="lbopentime" runat="server">未选定</asp:Label></td>
                                </tr>
                                <tr>
                                     <td>关闭时间:</td><td colspan="3"><asp:Label ID="lbclosetime" runat="server">未选定</asp:Label></td>
                                </tr>
                                <tr>
                                     <td>建设时间:</td><td colspan="3"><asp:Label ID="lbbuildtime" runat="server">未选定</asp:Label></td>
                                </tr>
                                <tr>
                                    <td>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注:</td><td colspan="3"><asp:Label ID="lbremark" runat="server">未选定</asp:Label></td>
                                </tr>
                            </table>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </div>
                        <table class="bucket_content_table" cellpadding="5" cellspacing="0">
                         <tr>
                          <td style="width:70px;">
                              开启(<span style="color: #ff0000">*</span>):</td>
                          <td>
                              <input id="txtOpenDate" type="text" runat="server" class="easyui-validatebox" required="true" onfocus="WdatePicker({autoPickDate:true,dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true,isShowClear:false,readOnly:true,maxDate:'#F{$dp.$D(\'txtCloseDate\',{d:-1})||\'2020-10-01 00:00:00\'}'})" style="width: 148px" readonly="readOnly"/>
                              (年/月/日 时:分:秒)
                          </td>
                        </tr> 
                         <tr>
                          <td>关闭(<span style="color: #ff0000">*</span>):</td>
                          <td>
                              <input id="txtCloseDate" type="text" runat="server" class="easyui-validatebox" required="true" onfocus="WdatePicker({autoPickDate:true,startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true,isShowClear:false,readOnly:true,minDate:'#F{$dp.$D(\'txtOpenDate\',{d:+1})}',maxDate:'2020-10-01 00:00:00'})" style="width: 148px" readonly="readOnly"/>
                              (年/月/日 时:分:秒)
                                  </td>
                        </tr> 
                         <tr>
                          <td>开启人:</td>
                          <td>
                              <asp:TextBox ID="txtOperate" runat="server"></asp:TextBox></td>
                        </tr> 
                         <tr>
                          <td>状态：</td>
                          <td>
                              <asp:Label ID="Label1" runat="server" Text="正常开启"></asp:Label></td>
                        </tr> 
                        <tr><td colspan="3" style="text-align:center;">
                            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                <ContentTemplate>
                            <asp:Button ID="btnSubmit" runat="server" Text="提交" CssClass="btn-dy-blue" OnClick="btnSubmit_Click" />
                            <input id="Button1" type="button" value="清空"  class="btn-dy-blue" onclick="return clearall()" />
                                </ContentTemplate>
                            </asp:UpdatePanel>
                            </td></tr> 
                     </table>
                   </div> 
	           </div>
	           <div class="bucket_bottom"><span>&nbsp;</span>
	           </div>
	   </div>
    </div>
  </div>
    <div class="columns_right">
    <div class="clear" style="padding-top: 4px;"></div> 
    <div style="width:250px;">
          <div class="heading_container">
	             <div class="heading_right_top">&nbsp;</div>
	             <h2>开启/关闭日志</h2></div>
	       <div class="bucket_container">
	             <div class="bucket_content">
	            <h2>将开启的审批：</h2><hr />
	            <div id="recentOpen" runat="server" style="color:#11264f"></div> 
	            <h2>已关闭的审批：</h2><hr />
	            <div id="recentClose" runat="server" style="color:#11264f"></div> 
	              <p style="margin:0px; padding-left:5px;"><<<a>更多……</a></p>
	             </div>
	            <div class="clear"></div>
	             <div class="bucket_bottom"><span>&nbsp;</span>&nbsp;</div>
          </div> 
  </div>
    <%-- <div style="width:250px;">
            <div class="heading_container">
	             <div class="heading_right_top">&nbsp;</div>
	             <h2>计划统计</h2></div>
	       <div class="bucket_container">
	             <div class="bucket_content" id="contentCount" runat="server">
	            <h2>共有项目计划20个</h2> 
	            <h2>其中过期项目有12个</h2>
	            <h2>在执行项目有5个</h2>
	            <h2>未完成项目有3个</h2>
	             </div> 
	             <div class="bucket_bottom"><span>&nbsp;</span> 
	       </div>
     </div>  
    </div>--%>
   <div style="width:250px;">
            <div class="heading_container">
	             <div class="heading_right_top">&nbsp;</div>
	             <h2>正在执行的计划</h2></div>
	       <div class="bucket_container">
	             <div class="bucket_content">
	                <div id="nowRunning" runat="server" style="color:#1d953f"></div>
	                <p style="margin:0px; padding-left:5px;"><<<a>更多……</a></p> 
	             </div> 
	             <div class="bucket_bottom"><span>&nbsp;</span> 
	       </div>
     </div>  
    </div> 
   </div> 
   </div>
    </form>
</body>
</html>
